<h2 class="title3" style="width: 95%">
	添加新闻
</h2>
<% form_tag("/content/create_news", :method => :post, :name => "postform") do %>
<% @new = New.new %>
	<p>
  	<label for="new_title" style="font-size: 14px">标题：</label>
		<%= text_field :new, :title, :class => "text",:style => "width:45%" %>
	</p>
	<p>
		<label for="new_title" style="font-size: 14px">分类：</label>
		<% Category.all.each do |category|  %>
    <%= category.name %><%= check_box_tag "categories[]" ,category.id, :class => "text" %>
		<% end %>
	</p>
  <%#= ckeditor_textarea(:new, :content, :width => '90%', :height => '200px', :language => "zh") %>
	<%= render :partial => "share/post_content", :locals => {:post => @new} %>
  <ul id="files" class="list-image"></ul>
  <br/>
  <%= submit_tag "保存", :class => "submit" %>
<% end %>

<%= render :partial => "share/ajax_upload" %>
